import 'package:flutter/material.dart';

class bottomSheet {
  showCustomModalBottomSheet(context,
      {Widget title, Widget options, bool show = true, double radius = 20}) {
    return showModalBottomSheet(
        backgroundColor: Colors.transparent,
        isScrollControlled: true,
        context: context,
        builder: (context) {
          return Container(
            clipBehavior: Clip.none,
            decoration: BoxDecoration(
              color: Colors.white,
              borderRadius: BorderRadius.only(
                topLeft: Radius.circular(radius),
                topRight: Radius.circular(radius),
              ),
            ),
            height: MediaQuery.of(context).size.height / 2.0,
            child: Column(
                crossAxisAlignment: CrossAxisAlignment.start,
                children: [
              title,
              if (show) Divider(height: 1.0),
              Expanded(child: options),
            ]),
          );
        });
  }
}
